package com.zcx.controller;

import com.zcx.common.vo.ApiResult;
import com.zcx.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaochangxin
 * @Title: UserController
 * @Package com.zcx.controller
 * @Description: UserController
 * @date 2022/3/31 9:58
 */
@RequestMapping("/user")
@RestController
public class UserController {
    @Autowired
    IUserService userService;
    @GetMapping("/list")
    public ApiResult getAllUserList(){
        return ApiResult.success("获取所有用户信息成功",userService.queryAllUser());
    }
}
